home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 6
/
FM Towns Free Software Collection 6.iso
/
t_os
/
vdtwn
/
tvf
/
asmhd6
/
tw1hd6
/
zoom3.hd6
< prev
Wrap
Text File
|
1993-07-08
|
1KB
|
91 lines
ds_name db '\KOMEI\実物\tvf_prg\ZOOM3',0
paint_wd:
re_paint:
mouse_in:
ret
be_called:
push ebp
push ds
push es
mov ax,1ch
mov ds,ax
mov es,ax
;===== ZOOM UP mode3 =====
align 4
zoom_up3: mov ah,7 ;水平移動範囲指定
mov dx,0
mov bx,270
call MOUSE ;pword ptr fs:[MB]
mov ah,8 ;垂直移動範囲指定
mov dx,0
mov bx,180
call MOUSE ;pword ptr fs:[MB]
#zoom_up3: call MOUSE1 ;pword ptr fs:[MSR]
mov ah,03h ;位置読み取り
call MOUSE ;pword ptr fs:[MB]
movzx eax,dx
movzx esi,bx
imul esi,400h ;SourceVRAM座標算出
shl eax,1
add esi,eax
mov edi,40000h ;DestinationVRAM座標(^^;)
mov ebp,400h-8 ;work
mov edx,400h*3
mov ecx,60
;拡大率は、4倍
align 4
#drawing3: push ecx
mov cl,16
REPT 90
lodsw
mov ebx,eax ;この方が早い
shl eax,cl
mov ax,bx
stosd
stosd
add edi,ebp
stosd
stosd
add edi,ebp
stosd
stosd
add edi,ebp
stosd
stosd
sub edi,edx
ENDM
add esi,400h-90*2
add edi,400h*4-360*2
pop ecx
dec ecx
jnz #drawing3
mov ax,0901h
int 90h
xor dh,0FFh
je #zoom_up3
pop es
pop ds
pop ebp
ret
look_me:
call sub_esi
dd 0,0
dw 0,0,30,42,20,50,15,1,0,0